<template>
	<view class="">
		<web-view :src="`${_url}/wx_authorize/check_wxopenid?openid=${openid}`" @message="bindmessage"
			@onPostMessage="getMsg"></web-view>
	</view>

</template>

<script>
	import ajax from "@/utils/ajax.js";

	export default {
		data() {
			return {
				_url: ajax.apiUrl,
				openid: ''
			}
		},
		onLoad() {
			let openid = uni.getStorageSync('userInfo').xcx_openid
			this.openid = openid;
		},
		methods: {
			bindmessage(e) {
				var follow = e.detail.data[0].follow;
				console.log(follow, '关注情况关注情况')
			},
			getMsg(e) {
				var follow = e.detail.data[0].follow;
				console.log(follow, '关注情况关注情况2')
			}
		}
	}
</script>

<style lang="scss" scoped></style>